package com.zdft.promotion.transfers.api;

import com.zdft.esb.annotation.EsbClass;
import com.zdft.esb.annotation.EsbMethod;
import com.zdft.promotion.RpcServiceException;
import com.zdft.promotion.transfers.dto.RestfulDto;
import com.zdft.promotion.transfers.dto.TransfersDetailDto;
import com.zdft.promotion.transfers.dto.TransfersDto;

import java.util.List;

@EsbClass("com.zdft.promotion.transfers.api.ITransfersRpc")
public interface ITransfersRpc {
//    /**
//     * 创建出库单
//     * @param id
//     */
//    @EsbMethod("delivery")
//    RestfulDto createDelivery(Long id) throws Exception;

    /**
     * 创建调拨越库单
     * @param dto
     * @param detailDtos
     * @param deptId
     * @return
     */
    @EsbMethod("create")
    RestfulDto createTransfers(TransfersDto dto, List<TransfersDetailDto> detailDtos, String deptId, String empCode) throws RpcServiceException;
}
